package com.paginasenlanube.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "image")
public class Image implements Serializable{
	
	
  private static final long serialVersionUID = 1L;
  private transient long id; // set to transient for not writing this field into json response
  private transient String url;
  private transient String caption;
  private transient String title;
  private transient String tags;
  private String fileName;
  private String fileSize;
  private String fileType;
  private int width = 0;
  private int height = 0;
  
  private long header_id;
  private long news_id;
  private long imageGallery_id;
  private int position = 0;

 
  public Image(){
	  
  }

  @Id
  @GeneratedValue
  @Column(name = "id")
  public long getId() {
    return id;
  }

  public void setId(long value) {
    id = value;
  }

  public String getUrl() {
    return url;
  }

  public void setUrl(String value) {
    url = value;
  }

  public String getCaption() {
    return caption;
  }

  public void setCaption(String value) {
    caption = value;
  }
  
  public String getFileName() {
		return fileName;
}

public void setFileName(String fileName) {
		this.fileName = fileName;
}

public String getFileSize() {
		return fileSize;
}

public void setFileSize(String fileSize) {
		this.fileSize = fileSize;
}

public String getFileType() {
		return fileType;
}

public void setFileType(String fileType) {
		this.fileType = fileType;
}

public int getWidth() {
	return width;
}

public void setWidth(int width) {
	this.width = width;
}

public int getHeight() {
	return height;
}

public void setHeight(int height) {
	this.height = height;
}

public long getHeader_id() {
	return header_id;
}

public void setHeader_id(long header_id) {
	this.header_id = header_id;
}

public String getTitle() {
	return title;
}

public void setTitle(String title) {
	this.title = title;
}

public long getImageGallery_id() {
	return imageGallery_id;
}

public void setImageGallery_id(long imageGallery_id) {
	this.imageGallery_id = imageGallery_id;
}

public int getPosition() {
	return position;
}

public void setPosition(int position) {
	this.position = position;
}

public long getNews_id() {
	return news_id;
}

public void setNews_id(long news_id) {
	this.news_id = news_id;
}

public String getTags() {
	return tags;
}

public void setTags(String tags) {
	this.tags = tags;
}


}
